import request from "../../utils/request";
import { ResLogin } from "./type";
export const reqLogin = (phone:string,password:string) => {
  return request.post<any,ResLogin>('http://sph-h5-api.atguigu.cn/api/user/passport/login',{
   phone,password
  })
};

export const reqUserInfo=()=>{
  return request.get<any,any>(`http://sph-h5-api.atguigu.cn/api/user/passport/auth/getUserInfo`);
}

